<% include head %>	
		<style>
			ul{
				width: 500px;
				margin: 0 auto;
			}
			ul li{
				border-bottom: solid 1px #EEEEEE;
				padding: 10px ;
			}
			ul li p:first-child img{
				width: 100px;
				height: 100px;
				border-radius: 50%;
			}
			ul li p:first-child span{
				position: relative;
				top: -40px;
				left: 10px;
				
			}
			ul li p:nth-child(2) span{
				color: orangered;
			}
			ul li p:nth-child(3) span{
				background: orangered;
				padding: 1px 5px;
				border-radius: 5px;
				color: white;
				cursor: pointer;
			}
		</style>
		<ul>
			<% sellers.forEach(function(item){ %>
				
				<li><p><img src="<%= item.avatar %>"/> <span><%= item.nickName %></span></p>
					<p>荣誉值：<span><%= item.score %></span>点</p>
					<p><% if(item.isDis == false){ %>
						<span class="dis" id='<%= item._id %>'>封禁</span>
						<% }else{ %>
							<span class="dis" id='<%= item._id %>'>解禁</span>
						<% } %>
					</p>
				</li>
				
			<% }) %>
			
		</ul>
		<script>
			$('.dis').click(function(ev){
				var id = $(this).attr('id');
				$.get('/disSeller?id='+id,function(resData){
					if(resData = 'success'){
						location.reload();
					}
				})
			})
		</script>
<% include foot %>	